<script type="text/javascript" src="{TPL}js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="js/colorbox/colorbox.css" />
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25735331-7']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<script type="text/javascript">
function clickquit() {
	//window.localStorage.removeItem("dg_loginauth");
   window.postMessage({ type: "CLEAR_COOKIE_DOCUMENT"}, "*");
   window.postMessage({ type: "CLEAR_COOKIE_EXTENSION_API"}, "*");
}

		
function searchbg(){
	var selectedStr = "";
	var selectedType = "";
	selectedStr = document.getElementById("txtsearchbg").value;
	selectedType = document.getElementById("dropdown_filter").value;
	
	if (selectedStr == "") {
		alert("{lang h_tianxie_danhao}");
		return false;
	}
	if (selectedStr != "" && selectedStr != null) {
		$.colorbox({
			width:"80%", 
			height:"80%", 
			iframe:true, 
			href:"searchbg.php?action1=searchbgdh&searchdh="+selectedStr+"&searchtype="+selectedType
		});
	}
	
	
}	
</script>
</script>
<script src="templates/default/js/jquery.cookies.2.1.0.min.js" type="text/javascript"></script>
<Link type="text/css" rel="stylesheet" href="{TPL}css/animations.css">
<link type="text/css" rel="stylesheet" href="{TPL}css/common.css">
<link type="text/css" rel="stylesheet" media="screen and (max-width:1280px) and (min-width:1024px)" href="{TPL}css/skin.css">


<!-- 一键填单代码开始 -->
<div class="bodycontainer">

<link href="add/AddItemPanel.css" rel="stylesheet" type="text/css" />

<div class="addpanel_dialog" style="display: none;">

  <div class="addpanel_windowname">

    <h2>{lang g_fill_key}</h2>

    <a id="closeBtn" title="{lang Close}"></a> </div>

  <div class="addpanel_inlay">

    <div id="p0"> <img src="/add/newimgs/<?php echo $cur_lan?>/loading.gif" alt="{lang Loading}。。。" />

      <p> {lang g_loading}…… </p>

    </div>

    <div id="p1"> </div>

    <div id="p2" style="display: none;"> </div>

    <div id="p3" style="display: none;"> </div>

  </div>

</div>

<div class="addpanel_overlay"> </div>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<script type="text/javascript">
	function DelCookie() {
		document.cookie = "dg_loginauth=; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.uukingdom.com;path=/";
	}
</script>
<!-- 一键填单代码结束 -->


<div class="site_nav">
	<div class="box siteHead clear rel">
    	<div class="siteInfo">
        {if empty($_USERS)}
        	<a href="{url_user.php?action=register}" title="{lang h_register}" target="_blank">{lang h_register}</a>
            <a href="{url_user.php?action=login&logintype=Normal}" title="{lang h_login}" target="_blank">{lang h_login}</a>
            <a href="{url_user.php?action=login&logintype=Facebook}" class="faceBook" title="faceBook{lang h_login}" target="_blank">faceBook</a>
        {else}
        	<span><a href="{url_m.php}" class="my_name" target="_blank">{lang h_hello}<i>{$_USERS['uname']}</i></a></span><span><a onclick="DelCookie()" href="{url_user.php?action=quit}" target="_blank" >{lang h_out}</a></span>
        {/if}
            <P class="contact"><b>{lang h_contact_us}:</b>010-3238088</P>
			<div class="fr se_kuaidi rel"><span class="se_tit">{lang i_express_search}</span><div class="kdcx"><select id="dropdown_filter" name="dropdown_filter" ><option value='chdh'>{lang h_chuhuo_danhao}</option><option value='cgdh'>{lang h_chongguo_danhao}</option></select><div class="kd_in"><input type="text" placeholder="{lang i_input_welcome}{lang m_o_no}" id='txtsearchbg' name='txtsearchbg' ><button type="button" onclick='searchbg()' >{lang g_query}</button></div><p class='samp'>{lang i_instr1}</p>
			
			</div>

			
			</div>
<select name='lan' id='lan' onchange='location.href="change_lan.php?lan="+this.value' >
			      <option value='zh-CN'>{lang h_l_zh}</option>
				  <option value='en'>{lang h_l_en}</option>
				  <option value='ms'>{lang h_l_ms}</option>
			   </select><script>document.getElementById('lan').value='<?php echo $cur_lan?>';</script>
			   
		
		<div class="app_down app_az"><div class="rel"><a href="qiqihome.apk" title="安卓APP下载" target="_blank" class="appLink">安卓下载</a><div class="app_info"><p>扫描二维码直接下载</p><p><a href="qiqihome.apk" target="_blank" class="app_a">点击直接下载（暂时只供代运使用）</a></p><img src="{TPL}images/ewm.jpg" /></div></div></div>
		<!--<div class="app_down app_ios"><div class="rel"><a href="#" title="苹果APP下载" target="_blank" class="appLink">苹果下载</a><div class="app_info"><p>扫描二维码直接下载</p><p><a href="#" target="_blank" class="app_a">点击直接下载</a></p><img src="{TPL}images/ewm.jpg" /></div></div></div>  -->
        </div>
        

    </div>
</div>

<div class="site_head rel box clear">
<div class="huilv hl_list">{lang h_exchange_rate}:<b>{$cfg_site_huilv}</b></div>
	<a href="/" title="{lang g_webname}" class="logo"><img src="{TPL}imgs/<?php echo $cur_lan?>/logo.png"></a>
	<!--<div class="coll"><a href="javascript:" onclick="AddFavorite(window.location,document.title)"><span>{lang s_add_favorite}</span></a></div>-->
    
    <a href="{url_shoppingcart.php}" class="shoppingCart" target="_blank" style="color:#fff;">{lang h_shopping_cart}<b>{$_CARTCOUNT}</b>件</a>
    
	<div class="search rel clear search_list" id="search">
		<div class="searchBar"><span class="on" onClick="showForm('se_mgj','mgj');" id="mgj">{lang g_mogu}</span><span onClick="showForm('se_jd','jd');" id="jd">{lang g_jd}</span><span onClick="showForm('se_tb','tb');" id="tb">{lang g_taobao}</span><span onClick="showForm('se_dg','dg');" id="dg">代购</span></div>
		<div class="searchCon">
<div class="se_in on" id="se_mgj">
            <?php
            $s_temp=explode("/",$_GET["s"]);
            $s_end=$s_temp[0];
            if($s_end=="")$s_end=$s_temp[1];
            ?>
				<form target="_blank" action="/mogujie/search.php" method="get" id="top_nav_form">
				<input type="text" name="q" id="q" class="ts_txt fl" value="<?php echo $s_end;?>"  placeholder="{lang i_search_in_mogo}" />
				<input type="hidden" name="t" value="bao" id="select_type" />
					<?php //$u = base64_encode("http://www.mogujie.com/book/search/");?>
					<input type="hidden" name="s" id="s" value="<?php echo $u?>" />
                    <button type="submit" id="sub" value="搜索" class="ts_btn"></button>
				</form>
				<script>
					$(document).ready(function(){
						uu = $("#s").val();
						$("#q").click(function(){
							$("#s").val(uu);
						});
						$("#sub").click(function(){
							s = $("#q").val();
							$("#s").val(uu+s);
							return true;
						});
					});
				</script>
            
            </div>
        	<div class="se_in" id="se_jd">
            <form action="/jd/s.php" method="get" target="_blank">
                <input type="text" class="text" name="keyword" placeholder="{lang i_search_in_jd}" />
                <input type="hidden" class="text" name="enc" value="utf-8" >
                <button type="submit" id="submit" value="搜索" class="button"></button>
            </form>            
            
            </div>
        	<div class="se_in" id="se_tb">            
            <form method="get" name="search" action="/taobao/search.php" id="J_TSearchForm" class="search-panel-focused" target="_blank">
            <button class="btn-search" type="submit"></button>
            <input id="q" class="search-combobox-input" autocomplete="off" name="q" value="<?php echo $_GET[q]?>" placeholder="{lang i_search_in_taobao}">
			<input type="hidden" value="all" name="commend">
			<input type="hidden" autocomplete="off" value="s5-e" name="ssid">
			<input type="hidden" autocomplete="off" value="item" name="search_type">
			<input type="hidden" value="tb.index" name="sourceId">
			<input type="hidden" name="style" value='grid' >
			<input type="hidden" value="1.7274553.1997520841.1" name="spm">
			<input type="hidden" value="tbindexz_<?php echo date('Ymd')?>" name="initiative_id">
			<input type='hidden'  name='vertical_valid'  value='false' />
			<input type='hidden'  name='cd'  value='false' />
            </form>
            
            </div>

			<div class="se_in se_dg" id="se_dg">
			<div class="seTb"><input name="" type="text" id="CrawlUrl" class="search_box_no1_buy input_headsearch" placeholder="{lang h_input_recomm}" /><button type="submit" class="search1_btn noUnderLine CrawlBtn" id="CrawlBtn" formtarget="_blank">{lang h_b_post}</button></div>         
			</div>

        </div>
    </div>

</div>


<div class="topMenu menu_list">
	<div class="box clear">
    <ul>
    	<li><a href="/">{lang h_index}</a><em></em></li>
        <li><a href="/cangwei.php" target="_blank">{lang f_trans_try}</a><em></em></li>
        <li><a href="{url_help.php?action=view&id=3}" target="_blank">{lang f_contact_us}</a><em></em></li>
        <li><a href="{url_help.php?action=index}" target="_blank">{lang h_help_center}</a></li>
    </ul>
    </div>
</div>
